package com.sunlands.qdcy.deskmate.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zhaocg
 * @create 2019/4/16 10:15
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "群组用户信息")
public class GroupUserVO {

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "组ID")
    private String groupId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户加入状态 1:正常 0:淘汰")
    private Integer userState;

    @ApiModelProperty(value = "审核状态 1：通过  0：不通过")
    private Integer authState;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "是否是群主 1:是 0:否")
    private Byte isBuilder;

    @ApiModelProperty(value = "是否开启免打扰  默认1 1:开启 0:关闭")
    private Byte announcement;

    @ApiModelProperty(value = "所在小组昵称（默认用户昵称）")
    private String groupNickName;

    //--------------自己添加-----------------
    @ApiModelProperty(value = "用户头像")
    private String avatarUrl;

    @ApiModelProperty(value = "用户目标")
    private String target;


}
